fruit = 'banana'

# fruit.count()
# 打印字符串的内置函数功能
# print(dir(fruit))
# for letter in fruit:
#     print(letter)
# print(help(fruit.upper))

# str = 'banana' ,letter = 'a'
# count('banana' ,'a')
# 3
# def count(str,letter):


    # return letter在 str中出现的次数

# str.find
# 切片
fruit = 'banana'
index = 6
while index > 0:
    letter = fruit[index-1]
    print(letter)
    index = index - 1